<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "listen_content".
 *
 * @property integer $tid
 * @property string $title
 * @property string $info
 * @property string $content
 * @property string $class_id1
 * @property string $class_id2
 * @property string $num
 * @property string $diff
 * @property string $url
 */
class Listen_content extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'listen_content';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['title', 'info', 'content', 'class_id1', 'class_id2', 'url'], 'required'],
            [['content'], 'string'],
            [['class_id1', 'class_id2', 'num', 'diff'], 'integer'],
            [['title', 'info', 'url'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'tid' => 'Tid',
            'title' => 'Title',
            'info' => 'Info',
            'content' => 'Content',
            'class_id1' => 'Class Id1',
            'class_id2' => 'Class Id2',
            'num' => 'Num',
            'diff' => 'Diff',
            'url' => 'Url',
        ];
    }
}
